import React from 'react';
import AccInfoPage from '../pages/AccountSystem/AccInfoPage';
import AccountManager from '../components/AccountManager';
import AccSubPage from '../components/AccSubPage';
import AccountSystemHome from '../pages/AccountSystem/index';
import { RouteConfig } from '../types/router.types';

const AccountRoutes: RouteConfig[] = [
  {
    path: "/apiTest", 
    element: React.createElement(AccountSystemHome),
    children: [
      { path: "apiList", element: React.createElement(AccInfoPage) },
      { path: "apiManager", element: React.createElement(AccSubPage) },
    ],
  },
  // 这个组件在渲染的时候会覆盖掉/account的内容
  {
    path: "/apiManager",
    element: React.createElement(AccountManager),
  }
];

export default AccountRoutes;